import Load from "react-loadable";
import { Loading } from "antd-mobile";
let LoadingComponent = () => {
	return (
		<div>
			<Loading></Loading>
		</div>
	);
};

const LoadFun = (loader: any, loading = LoadingComponent) => {
	return Load({
		loader,
		loading,
	});
};

export default LoadFun;
